package com.irdstudio.efp.report.service.dao;

import com.irdstudio.efp.report.service.domain.ZxbsAccLoan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DAO Interface: 贷款台账
 *
 * @author gcb
 * @date 2020-07-28
 */
public interface ZxbsAccLoanDao {
    /**
     * 新增数据
     *
     * @param zxbsAccLoan
     * @return
     */
    int insert(ZxbsAccLoan zxbsAccLoan);

    /**
     * 根据主键删除信息
     *
     * @param zxbsAccLoan
     * @return
     */
    int deleteByPk(ZxbsAccLoan zxbsAccLoan);

    /**
     * 根据主键更新信息
     *
     * @param zxbsAccLoan
     * @return
     */
    int updateByPk(ZxbsAccLoan zxbsAccLoan);

    /**
     * 根据主键查询详情
     *
     * @param zxbsAccLoan
     * @return
     */
    ZxbsAccLoan queryByPk(ZxbsAccLoan zxbsAccLoan);

    int insertOrUpdate(List<ZxbsAccLoan> list);


    /**
     * 根据借据编号List查借据数据
     *
     * @param billNos
     * @return
     */
    List<ZxbsAccLoan> queryByBillNos(@Param("billNos") List<String> billNos);

    List<ZxbsAccLoan> queryByApplySqes(@Param("ids") List<String> ids);
}